package com.sitech.util.spring;

import java.io.IOException;

import org.springframework.core.io.Resource;
import org.springframework.web.context.support.XmlWebApplicationContext;

public class WebApplicationContext extends XmlWebApplicationContext
{
	private boolean LOAD = false;

	
	public Resource[] getResources(String location) throws IOException
	{
		
		Resource[] resources = super.getResources(location);
		
		if(!LOAD)
		{
			LOAD = true;

			try
			{
				
//				JdbcResource resource = new JdbcResource();
//				resources = (Resource[]) ArrayUtils.add(resources, resource);
			}
			catch (Exception e)
			{
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
		
		return resources;
	}
}
